{% extends 'news/base.html' %}

{# 1,重写title部分 #}
{% block titleBlock %}
    首页-新经网
{% endblock %}

{# 2,script部分 #}
{% block scriptBlock %}
    <script type="text/javascript" src="../../static/news/js/index.js"></script>
{% endblock %}

{# 3,重写分类部分 #}
{% block headerBlock %}
    {% for category in data.categories %}
        <li class="{% if category.name == "最新" %} active {% endif %}" data-cid="{{ category.id }}"><a href="javascript:;">{{ category.name }}</a></li>
    {% endfor %}
{% endblock %}

{# 4,重写新闻部分 #}
{% block contentBlock %}
    <ul class="list_con fl">
        <h1>拼命加载数据中......</h1>
    </ul>
{% endblock %}
